package generics.and.colecctions.parametros.de.tipo.en.clases.interfaces;

public class TestPila {

	public static void main(String[] args) {
		Pila<String> pilaString = new Pila<String>();
		pilaString.agregar("cadena");
		System.out.println(pilaString.recupera(0));

		Pila<Integer> pilaInteger = new Pila<Integer>();
		pilaInteger.agregar(2);
		System.out.println(pilaInteger.recupera(0));
	}

}
